package com.example.demo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;
@Data
@Document("users")
public class User {
    @Id
    private Integer id;
    @Field
    private String name;
    @Field
    private Double salary;
    @Field
    private Date birthday;
}
